package cola.project.hellojavaee.mapper;

import cola.project.hellojavaee.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    @Select("SELECT * FROM sys_user WHERE username=#{username} AND password=#{password}")
    User getUser(@Param("username") String username,@Param("password") String password);
}
